<?
include ('database.php');

switch($_POST['submit']) {

	case "AddZone": 
		$database->new_domain();
	break;

	case "ListAllSecondery": 
		$database-> list_all_secondery(1);
	break;

        case "DisplaySecondery":
                $database->display_secdns($_POST['domainname']);
        break;


/*
	case "remove":
		$database->remove_domain_step1();
	break;

	case "removeforever":
	        $database->remove_domain_step2();
        break;
		

	case "Updatedomain":
	        $database->edit_rrs($_POST['domainname'],$_POST['step']);
	break;
				

	case "SearchDomain":
                $database->display_rrs($_POST['domainname']);
        break;

	
	case "Display Page":
	        $database->list_all_domains($_POST['page_no']);
        break;

	case "AddMassRecord":
	        $database->add_mass_record();
	break;
				
	case "changettl":
		$database->change_ttl();
	break;

*/

	default:
		$database-> list_all_secondery(1);
	}
	



	

?>

